package com.mayday.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("approval_application")
@ApiModel(value = "ApprovalApplication", description = "审核申请单实体")
public class ApprovalApplication {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "模板ID")
    private Long templateId;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "客户ID")
    private Long customerId;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "提审人ID")
    private String submitterId;

    @ApiModelProperty(value = "当前节点")
    private String currentNode;

    @ApiModelProperty(value = "审核状态（1.待审批、2.审批中、3.已审批、4.已退回（已撤销）、5.红冲）")
    private Integer approvalStatus;

    @ApiModelProperty(value = "是否加急")
    private Boolean isUrgent;

    @ApiModelProperty(value = "评论")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;
}